package city.spring.modules.medicalstation.drugdeposit.service;

import city.spring.modules.medicalstation.drugdeposit.entity.DrugdepositEntity;
import city.spring.modules.medicalstation.drugdeposit.vo.DrugdepositVO;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Service：医护站药品缴存
 *
 * @author 谢金婷
 * @date 2020-10-13 11:44:37
 */
public interface DrugdepositService extends IService<DrugdepositEntity> {
    String CACHE_NAME = "drugdeposit";

    /**
     * 业务处理：保存一个 <strong>医护站药品缴存</strong>
     *
     * @param entity 医护站药品缴存
     */
    void saveDrugdeposit(DrugdepositEntity entity);

    /**
     * 业务处理：修改一个 <strong>医护站药品缴存</strong>
     *
     * @param entity 医护站药品缴存
     */
    void updateDrugdeposit(DrugdepositEntity entity);

    /**
     * 业务处理：删除一个 <strong>医护站药品缴存</strong>
     *
     * @param primaryKey 主键ID
     */
    void deleteDrugdeposit(String primaryKey);

    /**
     * 业务处理：删除多个 <strong>医护站药品缴存</strong>
     *
     * @param primaryKeys 主键ID列表
     */
    void deleteDrugdeposit(List<String> primaryKeys);

    IPage<DrugdepositVO> listPage(Page<? extends DrugdepositEntity> page, @Param(Constants.WRAPPER) Wrapper<? extends DrugdepositEntity> wrapper);

}